Go to virtualbox installation directory and execute the following command:
D:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyhd "F:\VirtualBox\my ubuntu.vdi" --resize 15360
Note 15360 is the new size (M), this command can only enlarge the size.
Install gparted by
sudo apt-get install gparted
and make the extended disk space available to use.Remount
/home
to the new disk. For concrete steps, refer to this link.